//
//  MyTableViewCell.swift
//  HoneyBee
//
//  Created by point on 2018/1/26.
//  Copyright © 2018年 point. All rights reserved.
// 我的消息cell

import UIKit


class MyTableViewCell: UITableViewCell {
    
    
    fileprivate lazy var titleLabel = UILabel(UIColor.black, 14, "00000")
    
    fileprivate lazy var lineView = UIView()
    
    
   
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        selectionStyle = .none
        
        contentView.addSubview(titleLabel)
        contentView.addSubview(lineView)
        
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(15)
            make.centerY.equalToSuperview()
        }
        
        lineView.snp.makeConstraints { (make) in
            make.left.equalToSuperview()
            make.right.equalToSuperview()
            make.bottom.equalToSuperview()
            make.height.equalTo(0.5)
        }
        lineView.backgroundColor = UIColor(hex: "eeeded")
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func configModel(modelArr:[String] , index:IndexPath) {
        titleLabel.text = modelArr[index.item];
    }
    
}
